package slxy.jiangtao.dts.entity.sys;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;
import slxy.jiangtao.dts.core.common.bean.BaseEntity;
import slxy.jiangtao.dts.core.common.bean.BaseId;
import slxy.jiangtao.dts.core.common.bean.Constants;

import javax.persistence.*;
import java.util.List;

/**
 * Code must be sexy
 * Created by JiangTao on 2017/1/12.
 */
@Entity
@Table(name = "role")
@DynamicInsert
public class Role extends BaseId {
    @Basic
    @Column(name = "name",nullable = false)
    private String name;

    @Basic
    @Column(name = "type")
    private String type;

    @Basic
    @Column(name = "remark")
    private String remark;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
